<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>门诊信息</title>
<link href="../../../css/style.css" rel="stylesheet" type="text/css">
  <link href="../../../bootstrap-3.3.7-dist/css/bootstrap.css" rel="stylesheet">
<script language="javascript" src="../../../js/clientSideApp.js"></script>
<script language="JavaScript" type="text/javascript" src="../../../js/win_center.js"></script>
  <script src="../../../bootstrap-3.3.7-dist/js/jquery-3.4.1.min.js"></script>
  <script src="../../../bootstrap-3.3.7-dist/js/bootstrap.js"></script>
<SCRIPT language=JavaScript type=text/JavaScript>
function windowOpen(theURL,winName,features,width,hight,scrollbars,top,left) 
{
  var parameter="top="+top+",left="+left+",width="+width+",height="+hight;
  if(scrollbars=="no")
 {parameter+=",scrollbars=no";}
  else
 {parameter+=",scrollbars=yes";}
  window.open(theURL,winName,parameter);
}
</SCRIPT>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="25" align="center" valign="bottom" class="td06"><table width="98%" border="0" cellspacing="3" cellpadding="0">
      <tr>
        <td width="15"><img src="../../../images/index_32.gif" width="9" height="9"></td>
        <td valign="bottom" class="title">住院信息</td>
      </tr>
    </table></td>
  </tr>
</table>
<br>
<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="td_page">
      科室： 
      <input name="textfield3" type="text" class="input">
      <input name="Submit" type="submit" class="buttonface02" value="  查询  ">
      <input name="Submit" type="button" class="buttonface02" onClick="javascript:openwindow('addpeople.htm','',500,300)" value=" 添加 ">
    </td>
  </tr>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="table01">
  <tr> 
    <td align="center" class="td_top">患者</td>
    <td class="td_top">性别</td>
    <td class="td_top">身份证号</td>
    <td class="td_top">练习电话</td>
    <td class="td_top">主治医生</td>
    <td class="td_top">病房</td>
    <td class="td_top">押金</td>
    <td class="td_top">出院结论</td>
    <td class="td_top"></td>
    <td class="td_top"></td>

  </tr>
  <input type="hidden" name="details">

</table>
<table width="95%"  border="0" cellpadding="0" cellspacing="0" class="table02" align="center">
  <tr>
    <td height="30" align="right"><img src="../../../images/1.gif" width="4" height="5" align="absmiddle"> 首页　 <img src="../../../images/2.gif" width="3" height="5" align="absmiddle"> 上一页　 <img src="../../../images/2-2.gif" width="3" height="5" align="absmiddle"> 下一页　 <img src="../../../images/3.gif" width="4" height="5" align="absmiddle"> 末页　　共 1 页 1 条记录</td>
  </tr>
</table>
<h1 id="hh"></h1>
</body>
<script>

  $.ajax({
    url:"/feign/book/displayAll/1",
    type:"get",
    headers: {
      Accept: "application/json; charset=utf-8",
      Authorization: location.href.split("=")[1]
    },
     // data:{"depid":1},
    dataType:"json",
    success:function (data) {
      $.each(index,data.data,function () {
        $("input[name='details']").append("  <tr> \n" +
                "    <td align=\"center\" class=\"td_01\" >"+data.pname+"</td>\n" +
                "    <td class=\"td_01\">data.pgender</td>\n" +
                "    <td class=\"td_01\">data.pcode</td>\n" +
                "    <td class=\"td_01\">data.pphone</td>\n" +
                "    <td class=\"td_01\">data.staname</td>\n" +
                "    <td class=\"td_01\">data.sckbedsid</td>\n" +
                "    <td class=\"td_01\">data.inpdeposit<span>元</span></td>\n" +
                "    <td class=\"td_01\"></td>\n" +
                "    <td class=\"td_01\">\n" +
                "      <button type='button' name='addgoods' data-toggle='modal' aria-pressed='false' data-target='#exampleModalCenter4'><span >出院</span></button>\n" +
                "      <input name=\"Submit\" type=\"button\" class=\"buttonface02\" onClick=\"javascript:openwindow('updatepeople.htm?val="+data+"','',500,300)\" value=\" 修改 \">\n" +
                "    </td>\n" +
                "  </tr>")
        establish1();
        establish2();

      })
    }
  })

  establish1();
  function establish1(){
    $("h1[id='hh']").before(
            "<div class='modal fade' id='exampleModalCenter3' tabindex='-1' role='dialog' aria-hidden='true'>"+
            "<div class='modal-dialog modal-dialog-centered' role='document'>"+
            "<div class='modal-content'>"+
            "<div class='modal-header text-center'>"+
            "<button type='button' class='close' data-dismiss='modal' aria-label='Close'>"+
            "<span aria-hidden='true'>&times;</span>"+
            "</button></div><div class='modal-body'><div class='login px-4 mx-auto mw-100'>"+
            "<form action='' method='post' enctype='multipart/form-data' id='goodsAdd'><div class='form-group'>"+
            // "<input class='browsers' list='browsers' placeholder='选择或输入添加商品类型'>"+
            "<label class='mb-2'>是否取消挂号</label><br>"+
            "<button name='ton1' class='btn btn-primary submit mt-2'>确认</button> &nbsp"+
            "<button type='button' class='btn btn-primary submit mt-2=' data-dismiss='modal' aria-label='Close'>取消</button></div>"+
            "</form></div></div></div></div></div>"
    )
  }
  establish2();
  function establish2(){
    $("h1[id='hh']").before(
            "<div class='modal fade' id='exampleModalCenter4' tabindex='-1' role='dialog' aria-hidden='true'>"+
            "<div class='modal-dialog modal-dialog-centered' role='document'>"+
            "<div class='modal-content'>"+
            "<div class='modal-header text-center'>"+
            "<button type='button' class='close' data-dismiss='modal' aria-label='Close'>"+
            "<span aria-hidden='true'>&times;</span>"+
            "</button></div><div class='modal-body'><div class='login px-4 mx-auto mw-100'>"+
            "<form action='' method='post' enctype='multipart/form-data' id='goodsAdd'><div class='form-group'>"+
            // "<input class='browsers' list='browsers' placeholder='选择或输入添加商品类型'>"+
            "<label class='mb-2'>是否允许出院</label><br>"+
            "<button name='ton1' class='btn btn-primary submit mt-2'>确认</button> &nbsp"+
            "<button type='button' class='btn btn-primary submit mt-2=' data-dismiss='modal' aria-label='Close'>取消</button></div>"+
            "</form></div></div></div></div></div>"
    )
  }


</script>
</html>
